package com.lalosoft.neodatisDemo.dao;

import java.util.ArrayList;
import java.util.List;

public class City {
	
	private String cityName;
	private List<People> peoples;
	
	public City(String name){
		this.cityName = name;
		peoples = new ArrayList<People>();
	}

	public String getCityName() {
		return cityName;
	}

	public void setCityName(String cityName) {
		this.cityName = cityName;
	}

	public List<People> getPeoples() {
		return peoples;
	}

	public void setPeoples(List<People> peoples) {
		this.peoples = peoples;
	}

	public String toString(){
		StringBuilder sb = new StringBuilder();
		sb.append("\n" + cityName + "\n").append(peoples);
		return sb.toString();
	}
}
